/*
 * Generated via the com.flca generator
 */
package flca.voicenav;
 
import atunit.AtUnit;
import atunit.Container;
import com.flca.Bootstrapper;
import com.flca.IAppContext;
import com.flca.frw.context.ThreadContext;
import com.flca.frw.context.ThreadContextHelper;
import com.flca.frw.context.ThreadContextMock;
import com.google.inject.Binder;
import flca.voicenav.VoiceNavConstants;
import flca.voicenav.VoiceNavTestModule;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
 
@RunWith(AtUnit.class)
@Container(Container.Option.GUICE)
public class VoiceNavTestDaoBase extends VoiceNavTestModule implements VoiceNavConstants
{
	protected static ThreadContext ctx;
	protected static IAppContext starter;
	protected static Long saveId;
	
	@Override
	public void configure(Binder b)
	{
		super.configure(b);
	}
	@BeforeClass
	public static void setupBeforeOnce() throws Exception
	{
		starter = Bootstrapper.startup(VoiceNavTestModule.class);
		ThreadContextMock.initialize(starter);		
		
		yourSpecificSetup();
	}
	
	// Replace this code with your own code.
	private static void yourSpecificSetup() 
	{
	}
	@Before 
	public void setupBeforeEach() throws Exception
	{
		ctx = ThreadContextHelper.startMockTransaction();	
	}
	
	@After
	public void teardownAfterEach()
	{
		ThreadContextHelper.cleanupCtx(ctx, starter.getConnectionPoolMgr());
	}
}
